package webEquipeRechercheGwt.client.callback.consultation;

import java.util.Collection;

import webEquipeRechercheGwt.client.callback.consultation.commands.CommandGetAllSoftwares;
import webEquipeRechercheGwt.client.entityMirror.SoftwareMirror;

import com.google.gwt.user.client.rpc.AsyncCallback;

public class CallBackGetAllSoftware implements AsyncCallback<Collection<SoftwareMirror>> {

	private CommandGetAllSoftwares cmd;
	
	public CallBackGetAllSoftware(CommandGetAllSoftwares cmd) {
		this.cmd = cmd;
	}

	@Override
	public void onFailure(Throwable caught) {
		// TODO Auto-generated method stub
	}

	@Override
	public void onSuccess(Collection<SoftwareMirror> result) {
		cmd.execute(result);
	}

}
